package com.dingding.web.tourism;

import java.util.List;

import javax.annotation.Resource;

import com.dingding.common.core.beans.special.Tourviewspot;
import com.dingding.order.dto.publish.special.TourismRouteDTO;
import com.dingding.order.service.ITourismFacade;
import com.dingding.web.base.action.BaseAction;

/**
 * 
 * @ClassName: TourismAction 
 * @Description: TODO(这里用一句话描述这个类的作用) 
 * @author YHQ
 * @date 2016年8月23日 上午9:15:28
 * @since V2.4.0
 * 
 */
@SuppressWarnings("serial")
public class TourismAction extends BaseAction{

	@Resource(name="tourismService")
	private ITourismFacade tourismFacade;
	
	// 城市编号
	private String cityNo;
	
	/**
	 * 
	 * @Title: getTourisList 
	 * @Description: 获取旅游路线列表 
	 * @author YHQ 
	 * @since V2.4.0
	 * @return String    返回类型
	 * 
	 */
	public String getTourisList(){
		
		// 获取旅游路线列表客户端请求Bean
		TourismRouteDTO tourismRouteDTO = new TourismRouteDTO();
		
		// 城市编号
		tourismRouteDTO.setCityNo(cityNo);
		
		// 获取旅游路线列表
		List<Tourviewspot> tourviewspots = tourismFacade.geTourviewspotList(tourismRouteDTO);
		
		String jsonp = super.getResJsonp(tourviewspots);
		super.write(jsonp);
		
		return jsonp;
	}

	public ITourismFacade getTourismFacade() {
		return tourismFacade;
	}

	public void setTourismFacade(ITourismFacade tourismFacade) {
		this.tourismFacade = tourismFacade;
	}

	public String getCityNo() {
		return cityNo;
	}

	public void setCityNo(String cityNo) {
		this.cityNo = cityNo;
	}

}
